//
// Created by zuo on 2024/7/1.
// 题目链接  https://www.lanqiao.cn/problems/3226/learning/?page=1&first_category_id=1&problem_id=3226
//

#include<bits/stdc++.h>
using namespace std;
using ll = long long;

int main()
{
    // 取消同步流
    ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);

    // int n;
    // cin >> n;
    // ll a[n];
    // for (int i = 0; i < n; i++)
    // {
    //     cin >> a[i];
    // }
    // sort(a, a + n); // 升序
    // for (auto i : a) cout << i << " \n"[i == (a[n] - 1)];

    ll n;
    cin >> n;
    vector<ll> v;
    for (int i = 0; i < n; i++)
    {
        ll num;
        cin >> num;
        v.push_back(num);
    }
    sort(v.begin(), v.end());
    for (const auto& i : v) cout << i << ' ';

    return 0;
}
